using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Aspnet_ProfileManagerBase
    {
        public Aspnet_ProfileManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity Insert(Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity Update(Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.Update(obj);             
        }
 
 
        public Aspnet_ProfileEntity Delete(Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByLastUpdatedDate (Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyNames (Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyNames");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyNames 
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyNames (string PropertyNames )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyNames = PropertyNames;  
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyNames");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyValuesBinary (Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyValuesBinary");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyValuesBinary 
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyValuesBinary (string PropertyValuesBinary )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesBinary = PropertyValuesBinary;  
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyValuesBinary");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyValuesString (Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyValuesString");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien PropertyValuesString 
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByPropertyValuesString (string PropertyValuesString )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesString = PropertyValuesString;  
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"PropertyValuesString");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByUserId (Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId 
        /// </summary>
        /// <returns>Aspnet_ProfileEntity</returns>
        public Aspnet_ProfileEntity DeleteByUserId (Guid UserId )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.UserId = UserId;  
            return (Aspnet_ProfileEntity)Adapter.DeleteByField(obj,"UserId");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Aspnet_ProfileEntity Select(Aspnet_ProfileEntity obj)
        { 
            return (Aspnet_ProfileEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_ProfileEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_ProfileEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Aspnet_ProfileEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Aspnet_ProfileEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_ProfileEntity> SelectAllLST()
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_ProfileEntity()),new Aspnet_ProfileEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_ProfileEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_ProfileEntity(),option),new Aspnet_ProfileEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_ProfileEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByLastUpdatedDateLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByLastUpdatedDateLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastUpdatedDate (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return Adapter.SelectByField(obj,"LastUpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastUpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByLastUpdatedDateLST (DateTime LastUpdatedDate, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.LastUpdatedDate = LastUpdatedDate;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastUpdatedDate",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyNames (Aspnet_ProfileEntity obj)
        { 
            return Adapter.SelectByField(obj,"PropertyNames");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyNames (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PropertyNames",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyNamesLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyNames"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyNamesLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PropertyNames",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyNames (string PropertyNames )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyNames = PropertyNames;  
            return Adapter.SelectByField(obj,"PropertyNames");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyNames (string PropertyNames, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyNames = PropertyNames;  
            return Adapter.SelectByField(obj,"PropertyNames",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyNamesLST (string PropertyNames )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyNames = PropertyNames;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyNames"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyNames duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyNamesLST (string PropertyNames, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyNames = PropertyNames;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyNames",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesBinary (Aspnet_ProfileEntity obj)
        { 
            return Adapter.SelectByField(obj,"PropertyValuesBinary");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesBinary (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PropertyValuesBinary",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesBinaryLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesBinary"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesBinaryLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PropertyValuesBinary",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesBinary (string PropertyValuesBinary )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesBinary = PropertyValuesBinary;  
            return Adapter.SelectByField(obj,"PropertyValuesBinary");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesBinary (string PropertyValuesBinary, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesBinary = PropertyValuesBinary;  
            return Adapter.SelectByField(obj,"PropertyValuesBinary",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesBinaryLST (string PropertyValuesBinary )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesBinary = PropertyValuesBinary;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesBinary"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesBinary duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesBinaryLST (string PropertyValuesBinary, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesBinary = PropertyValuesBinary;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesBinary",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesString (Aspnet_ProfileEntity obj)
        { 
            return Adapter.SelectByField(obj,"PropertyValuesString");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesString (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"PropertyValuesString",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesStringLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesString"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesStringLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"PropertyValuesString",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesString (string PropertyValuesString )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesString = PropertyValuesString;  
            return Adapter.SelectByField(obj,"PropertyValuesString");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPropertyValuesString (string PropertyValuesString, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesString = PropertyValuesString;  
            return Adapter.SelectByField(obj,"PropertyValuesString",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesStringLST (string PropertyValuesString )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesString = PropertyValuesString;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesString"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien PropertyValuesString duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByPropertyValuesStringLST (string PropertyValuesString, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.PropertyValuesString = PropertyValuesString;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"PropertyValuesString",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Aspnet_ProfileEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByUserIdLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectByUserIdLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserId",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByUserIdLST (Guid UserId )
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.UserId = UserId;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_ProfileEntity> SelectByUserIdLST (Guid UserId, SelectOptions option)
        { 
            Aspnet_ProfileEntity obj = new Aspnet_ProfileEntity();
            obj.UserId = UserId;  
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId",option),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectWithConditionLST (Aspnet_ProfileEntity obj)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Aspnet_ProfileEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_ProfileEntity></returns>
        public List<Aspnet_ProfileEntity> SelectWithConditionLST (Aspnet_ProfileEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_ProfileEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Aspnet_ProfileEntity());
        }

}
}
